/*
 * files.c - Managing directory, devices and files
 */
#include <files.h>

//initialize KEYBOARD and DISPLAY
void init_devices()
{
	//initializing keyboard
	copy_data("KEYBOARD\0",directory[0],9);
	directory[0].access_mode_allowed = O_RDONLY;
	//directory[0].first_block = ?;
	directory[0].num_refs = 0;

	//initializing DISPLAY
	copy_data("DISPLAY\0",directory[0],8);
	directory[1].access_mode_allowed = O_WRONLY;
	//directory[0].first_block = ?;
	directory[1].num_refs = 0;	
}
